package com.android.love.parser;


import com.alibaba.fastjson.JSON;
import com.android.love.util.LogUtil;
import com.android.love.vo.Goods;

public class ShopDetailParser extends BaseParser<Goods> {
	private static final String TAG = "ShopDetailParser";

	@Override
	public Goods parserJson(String jsonStr) {
		Goods goods = null;
		if (checkResponse(jsonStr)) {
			// LogUtil.i(TAG, jsonStr);
			String data = jsonObject.getString("data");
			LogUtil.i(TAG, "data---" + data);
			if (data != null) {
				goods = JSON.parseObject(data, Goods.class);
				LogUtil.i(TAG, "data---" + goods.getGoods_id());
			}
		}
		// TODO Auto-generated method stub
		return goods;
	}
}
